package com.study.controller;

import com.study.entity.AppInfo;
import com.study.entity.DataDictionary;
import com.study.service.AppInforService;
import com.study.service.DataDictionaryService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.util.List;

/**
 * Created by Administrator on 2017/10/20.
 */
@RequestMapping("app")
@Controller
public class DataDictionaryController {
    @Autowired
    private DataDictionaryService service;

    @RequestMapping("dataDictionary")
    @ResponseBody
    public List<DataDictionary> dataDictionary(String typeCode){
        DataDictionary dataDictionary=new DataDictionary();
        dataDictionary.setTypeCode(typeCode);
        List<DataDictionary> list = service.findList(dataDictionary);
        return list;
    }

}
